package top.itmeans.yes.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 购物车表
 * </p>
 *
 * @author Yiming.Cao
 * @since 2022-05-05
 */
@Getter
@Setter
@TableName("t_cart_item")
@ApiModel(value = "CartItem对象", description = "购物车表")
public class CartItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("购物车ID 非自增")
    private Long id;

    @ApiModelProperty("玉货ID")
    private Long productId;

    @ApiModelProperty("玉货SKU id")
    private Long productSkuId;

    @ApiModelProperty("用户ID")
    private Long memberId;

    @ApiModelProperty("购买数量")
    private Integer quantity;

    @ApiModelProperty("添加到购物车的价格")
    private BigDecimal price;

    @ApiModelProperty("玉货主图")
    private String productPic;

    @ApiModelProperty("玉货名称")
    private String productName;

    @ApiModelProperty("玉货副标题(卖点)")
    private String productSubTitle;

    @ApiModelProperty("用户昵称")
    private String memberNickname;

    @ApiModelProperty("创建时间")
    private LocalDateTime createDate;

    @ApiModelProperty("修改时间")
    private LocalDateTime modifyDate;

    @ApiModelProperty("是否删除(逻辑删除)")
    @TableLogic
    private Integer deleteStatus;

    @ApiModelProperty("玉货分类")
    private Long productCategoryId;

    @ApiModelProperty("玉货属性(重量、大小、成色)")
    private String productAttr;


}
